﻿<Window x:Class="Brjnk.GpxExplorer.UI.BitmapExportOptionsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:be="clr-namespace:Brjnk.GpxExplorer.Workspace.BitmapExport"
        xmlns:l="clr-namespace:Brjnk.GpxExplorer.Localization"
        xmlns:my="clr-namespace:Brjnk.GpxExplorer.UI.Controls"
        Title="{l:Loc titleBitmapExportOptions}"
        Height="500"
        MinWidth="300"
        MinHeight="300"
        SizeToContent="Width">
    <ScrollViewer>
        <StackPanel>
            <!--  Obecné nastavení  -->
            <TextBlock Style="{StaticResource HeaderStyle}" Text="{l:Loc bitmapExportOptionsGeneral}" />
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Text="{l:Loc bitmapExportOptionsDpiX}" />
                <TextBox Grid.Row="0"
                         Grid.Column="1"
                         Text="{Binding DpiX}" />
                <TextBlock Grid.Row="1" Text="{l:Loc bitmapExportOptionsDpiY}" />
                <TextBox Grid.Row="1"
                         Grid.Column="1"
                         Text="{Binding DpiY}" />
                <TextBlock Grid.Row="2" Text="{l:Loc bitmapExportOptionsBackground}" />
                <my:ColorPicker Grid.Row="2"
                                Grid.Column="1"
                                Color="{Binding Background}" />

                <CheckBox Grid.Row="3"
                          Grid.ColumnSpan="2"
                          Content="{l:Loc bitmapExportOptionsIncludeReference}"
                          IsChecked="{Binding IncludeReference}" />

                <CheckBox Grid.Row="4"
                          Grid.ColumnSpan="2"
                          Content="{l:Loc bitmapExportOptionsIncludeCompass}"
                          IsChecked="{Binding IncludeCompass}" />
            </Grid>
            <TextBlock Style="{StaticResource HeaderStyle}" Text="{l:Loc bitmapExportDefaultLayout}" />
            <TextBlock Text="{l:Loc exportBitmapArrowType}" />
            <my:EnumPicker EnumType="{x:Type be:ArrowType}" Value="{Binding ArrowStyle.ArrowType}" />

            <TextBlock Text="{l:Loc exportBitmapArrowLength}" />
            <Slider Maximum="600"
                    Minimum="0"
                    Value="{Binding ArrowStyle.ArrowLength}" />

            <TextBlock Text="{l:Loc exportBitmapArrowThickness}" />
            <Slider Maximum="50"
                    Minimum="0"
                    Value="{Binding ArrowStyle.ArrowThickness}" />
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{l:Loc exportBitmapRotation}" />
                <TextBlock Grid.Column="1" Text="{Binding ElementName=sldRotation, Path=Value}" />
            </Grid>

            <Slider Name="sldRotation"
                    IsSnapToTickEnabled="True"
                    Maximum="360"
                    Minimum="0"
                    TickFrequency="10"
                    Value="{Binding LabelStyle.ContentRotation}" />
            <TextBlock Style="{StaticResource HeaderStyle}" Text="{l:Loc bitmapExportDefaultAppereance}" />

            <TextBlock Grid.Row="0" Text="{l:Loc exportBitmapLabelBackground}" />
            <my:ColorPicker Color="{Binding LabelStyle.Background}" />
            <TextBlock Grid.Row="1" Text="{l:Loc exportBitmapLabelBackgroundOpacity}" />

            <Slider Grid.Row="1"
                    Grid.Column="1"
                    Maximum="1"
                    Minimum="0"
                    Value="{Binding LabelStyle.BackgroundOpacity}" />

            <TextBlock Grid.Row="2" Text="{l:Loc exportBitmapLabelBorder}" />
            <my:ColorPicker Grid.Row="2"
                            Grid.Column="1"
                            Color="{Binding LabelStyle.Border}" />

            <TextBlock Grid.Row="3" Text="{l:Loc exportBitmapLabelBorderOpacity}" />
            <Slider Grid.Row="3"
                    Grid.Column="1"
                    Maximum="1"
                    Minimum="0"
                    Value="{Binding LabelStyle.BorderOpacity}" />

            <TextBlock Grid.Row="4" Text="{l:Loc exportBitmapLabelBorderThickness}" />
            <Slider Grid.Row="4"
                    Grid.Column="1"
                    Maximum="8"
                    Minimum="0"
                    Value="{Binding LabelStyle.BorderThickness}" />

            <TextBlock Grid.Row="5" Text="{l:Loc bitmapExportFontColor}" />

            <my:ColorPicker Grid.Row="5"
                            Grid.Column="1"
                            Color="{Binding LabelStyle.FontColor}" />

            <TextBlock Grid.Row="6" Text="{l:Loc bitmapExportFontSize}" />

            <Slider Grid.Row="6"
                    Grid.Column="1"
                    Maximum="60"
                    Minimum="1"
                    Value="{Binding LabelStyle.FontSize}" />

            <TextBlock Style="{StaticResource HeaderStyle}" Text="{l:Loc bitmapExportDefaultUserLabelStyle}" />

            <TextBlock Text="{l:Loc bitmapExportMaxWidth}" />
            <Slider Maximum="1000"
                    Minimum="1"
                    Value="{Binding UserLabelStyle.MaxWidth}" />

            <TextBlock Style="{StaticResource HeaderStyle}" Text="{l:Loc bitmapExportDefaultWaypointLabelStyle}" />
            <TextBlock Text="{l:Loc bitmapExportWaypointShowName}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowName, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Name="chbxShowWptCoordinates" Text="{l:Loc bitmapExportWaypointShowWptCoordinates}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowWptCoordinates, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportWaypointShowWptComment}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowWptComment, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportWaypointShowWptDescription}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowWptDescription, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportWaypointShowWptElevation}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowWptElevation, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Name="chbxShowWptTime" Text="{l:Loc bitmapExportWaypointShowWptTime}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowWptTime, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportWaypointShowGcName}" />
            <ComboBox Grid.Row="6"
                      Grid.Column="1"
                      SelectedIndex="{Binding Path=WaypointLabelStyle.ShowGcName,
                                              Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Name="chbxShowGcDTSize" Text="{l:Loc bitmapExportWaypointShowGCDTSize}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowGcDTSize, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportWaypointShowHint}" />
            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowGcHint, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportWaypointShowTitles}" />

            <ComboBox SelectedIndex="{Binding Path=WaypointLabelStyle.ShowValueTitles, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportWaypointContentLayout}" />
            <my:EnumPicker EnumType="{x:Type be:ContentLayout}" Value="{Binding WaypointLabelStyle.ContentLayout}" />

            <TextBlock Style="{StaticResource HeaderStyle}" Text="{l:Loc bitmapExportDefaultRouteLabelStyle}" />
            <TextBlock Text="{l:Loc bitmapExportRouteShowName}" />
            <ComboBox SelectedIndex="{Binding Path=RouteLabelStyle.ShowName, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportRouteShowRteLength}" />
            <ComboBox SelectedIndex="{Binding Path=RouteLabelStyle.ShowRteLength, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportRouteShowValueTitles}" />
            <ComboBox SelectedIndex="{Binding Path=RouteLabelStyle.ShowValueTitles, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportRouteLayout}" />
            <my:EnumPicker EnumType="{x:Type be:ContentLayout}" Value="{Binding RouteLabelStyle.ContentLayout}" />

            <TextBlock Style="{StaticResource HeaderStyle}" Text="{l:Loc bitmapExportDefaultTrackLabelStyle}" />

            <TextBlock Text="{l:Loc bitmapExportTrackShowName}" />
            <ComboBox SelectedIndex="{Binding Path=TrackLabelStyle.ShowName, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportTrackShowTrkLength}" />
            <ComboBox SelectedIndex="{Binding Path=TrackLabelStyle.ShowTrkLength, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportTrackShowTrkAvgSpeed}" />
            <ComboBox SelectedIndex="{Binding Path=TrackLabelStyle.ShowTrkAvgSpeed, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportTrackShowTrkDuration}" />
            <ComboBox SelectedIndex="{Binding Path=TrackLabelStyle.ShowTrkDuration, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportTrackShowTrkRised}" />
            <ComboBox SelectedIndex="{Binding Path=TrackLabelStyle.ShowTrkRised, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportTrackShowTrkFallen}" />
            <ComboBox SelectedIndex="{Binding Path=TrackLabelStyle.ShowTrkFallen, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportTrackShowTitles}" />
            <ComboBox SelectedIndex="{Binding Path=TrackLabelStyle.ShowValueTitles, Converter={StaticResource BoolToIntConverter}}">
                <ComboBoxItem Content="{l:Loc bitmapExportHide}" />
                <ComboBoxItem Content="{l:Loc bitmapExportShow}" />
            </ComboBox>

            <TextBlock Text="{l:Loc bitmapExportTrackLayout}" />
            <my:EnumPicker EnumType="{x:Type be:ContentLayout}" Value="{Binding TrackLabelStyle.ContentLayout}" />
        </StackPanel>
    </ScrollViewer>
</Window>